package zcjq.d829;

import java.util.Scanner;

public class Grass {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        String[] strArray = str.trim().split(" ");
        int n = Integer.parseInt(strArray[0]);
        int m = Integer.parseInt(strArray[1]);
        int k = Integer.parseInt(scanner.nextLine());
        int[][] optArray = new int[k][3];
        for (int i = 0; i < k; i++) {
            str = scanner.nextLine();
            strArray = str.trim().split("");
            optArray[i][0] = Integer.parseInt(strArray[0]);
            optArray[i][1] = Integer.parseInt(strArray[1]);
            optArray[i][2] = Integer.parseInt(strArray[2]);
        }
        //
    }

    // 割一下
    private static void cutGrass(int[][] board, int x, int y, int r) {
        int left = x - r;
        int right = x + r;
        int up = y - r;
        int down = y + r;

    }

    // 长一下
    private static void refreshGrass(int[][] board, int n, int m) {
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                board[i][j] += 1;
            }
        }
    }
}
